package week10;

import java.util.Arrays;
import java.util.Scanner;

public class Main2 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int  n = in.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < a.length; i++) {
			try{
				a[i] = Integer.parseInt(in.next());
			}
			catch(NumberFormatException e){
				System.out.println(e);
				i--;
			}
		}
		System.out.println(Arrays.toString(a));
	}
}
